package bus;

import java.util.List;

import dao.TestDetailDAO;
import dto.TestDetailDTO;

public class TestDetailBUS {
	public TestDetailDTO info = new TestDetailDTO();
	public TestDetailDAO data = new TestDetailDAO(null);
	
	public void setInfo(TestDetailDTO TestDetail) {
		this.info = TestDetail;
	}
	
	public TestDetailDTO getInfo() {
		return this.info;
	}
	
	public void addTestDetail() {
		data.addTestDetail(info);
	}
	
	public List<TestDetailDTO> getAllTestDetails(){
		return data.getAllTestDetails();
	}
	
	public boolean updateTestDetail(){
		return data.updateTestDetail(info);
	}
	
	public void deleteTestDetail(){
		data.deleteTestDetail(info);
	}
	
	public void deleteAllTestDetails(){
		data.deleteAllTestDetails();
	}
	
	public int getTestDetailCount(){
		return data.getTestDetailCount();
	}
}